package Db::Simpleblog::Articles;

# Created by DBIx::Class::Schema::Loader v0.03010 @ 2007-04-14 18:23:52

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("PK::Auto", "Core");
__PACKAGE__->table("articles");
__PACKAGE__->add_columns(
  "id",
  {
    data_type => "integer",
    default_value => "nextval('articles_id_seq'::regclass)",
    is_nullable => 0,
    size => 4,
  },
  "subject",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 255,
  },
  "body",
  {
    data_type => "text",
    default_value => undef,
    is_nullable => 1,
    size => undef,
  },
  "created_at",
  {
    data_type => "timestamp without time zone",
    default_value => undef,
    is_nullable => 1,
    size => 8,
  },
  "user_id",
  { data_type => "integer", default_value => undef, is_nullable => 1, size => 4 },
);
__PACKAGE__->set_primary_key("id");

__PACKAGE__->belongs_to("author", "Db::Simpleblog::Users", { id => "user_id" });

1;

__END__

=head1 NAME

Db::Simpleblog::Articles - DBIx::Class::Schema class for table articles

=head1 SYNOPSIS

See L<Simpleblog>

=head1 DESCRIPTION

DBIx::Class::Schema class for table articles

=head1 AUTHOR

chylli,,,

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut
